package com.dimaidt.girl.repository;

import com.dimaidt.girl.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author : Alex Hu
 * date : 2020/2/26 上午07:19
 * description :
 */
public interface GirlRepository extends JpaRepository<Girl,Integer> {
    /**
     * 按年龄查询
     * @param age
     * @return
     */
    List<Girl> findByAge(Integer age);

}
